// terminal传输的数据
export interface SheetDataType {
  buyin?: {
    symbol: string,
    name: string,
    price: number,
    amount: number,
    market: string,
    account: string,
  };
  saleout?: {
    symbol: string,
    name: string,
    price: number,
    amount: number,
    market: string,
    account: string,
  };
  type: string;  // buyin, saleout, both
}

// 用于modal显示的数据
export interface ShowDataType {
  symbol: string;
  name: string;
  price: number;
  amount: number;
  account: string;
}

// 给api的委托单数据
export interface EntrustPostType {
  exchange_type: string;
  stock_account: string;
  stock_code: string;
  entrust_amount: number;  // N10
  entrust_price: number; // N11.4
  entrust_bs: string;
  entrust_prop: string;
}

// 发送给后端的策略消息类型
export type StrategyRequestType = {
  tradeId: string,
  type: string,
  price: string,
  amount: number,
  symbol: string,
  symbolName: string
};

export const BUYINRATE = 0.003; // 3/1000;
export const SALEOUTRATE = 0.013; // 13/1000;